package project.menu.ordermenu;

import java.util.ArrayList;

import project.controllers.Controller;
import project.controllers.Helper;
import project.menu.IMenu;
import project.menu.IMenuItem;

public class ExportOrder implements IMenuItem {

	private static final String name = "Export orders";
	private static final String METHOD_NAME = "exportOrders";
	private final Integer id = 7;
	private static IMenu submenu;
	private Controller controller=Controller.getInstance();

	public Integer getId() {
		return id;
	}

	public ArrayList<String> action() {
		String number_order=controller.getNumberOrder().toString();
		
		return Helper.setParametrs(METHOD_NAME, number_order);

	}

	public void setSubmenu(IMenu menu) {
		submenu = menu;
	}

	public String getNameItem() {

		return name;
	}

	public IMenu getMenu() {
		return submenu;
	}

}
